package com.cj.simple;

import android.support.annotation.LayoutRes;
import android.support.v7.widget.RecyclerView;

import com.cj.library.widget.recyclerview.adapter.BaseViewHolder;
import com.cj.library.widget.recyclerview.adapter.EnterFromRightAdapter;

import java.util.Collection;

/**
 * Created by peter on 2016/9/8.
 */
public class RecyclerAdapter extends EnterFromRightAdapter<String> {

    public RecyclerAdapter(RecyclerView view, Collection<String> mDatas, @LayoutRes Integer layoutId) {
        super(view, mDatas, layoutId);
    }

    @Override
    protected void onBindViewHolder(BaseViewHolder holder, String item, boolean isScrolling, int position) {
        holder.setText(R.id.text, item);
    }

//    @Override
//    protected void additemAnimation(View view) {
////        if (scrollDerection == SCROLL_DERACTION_DOWN) {
////            ViewAnimatorUtiles.enterFromDown(view);
////        } else {
////            ViewAnimatorUtiles.enterFromUp(view);
////        }
//        ViewAnimatorUtiles.enterScaleX(view);
//    }
}
